Hi Paul,
Actually that's not the issue. While "#{dominoView}" or "#{javascript:dominoView}" is returning the collection (view entry collection), this variable (dominoView) if mixed with a little bit of more code, just returns the object lotus.domino.local.View (not a collection).
So I am not sure why the same variable returns the view entry collection in one case and the view object in the other case.
When it returns the collection, it is after applying all filters on the xp:dominoView data (like categoryFilter, keys etc.). But when it gives just the view object, I then have to do getAllEntriesByKey() to do what was otherwise given as a property of the xp:dominoView.
Hope I clarified the issue.
Thanks,
Rajeev.